package doxygenxml.compound;

/**********************************************************************************************
 * Copyright (c) 2001-2020 Liquid Technologies Limited. All rights reserved.
 * See www.liquid-technologies.com for product details.
 *
 * Please see products End User License Agreement for distribution permissions.
 *
 * WARNING: THIS FILE IS GENERATED
 * Changes made outside of ##HAND_CODED_BLOCK_START blocks will be overwritten
 *
 * Generation  :  by Liquid XML Data Binder 18.0.5.9988
 * Using Schema: CENSORED
 **********************************************************************************************/

// <summary>
// </summary>
public enum DoxGraphRelation {
	Include,
	Usage,
	TemplateMinusinstance,
	PublicMinusinheritance,
	ProtectedMinusinheritance,
	PrivateMinusinheritance,
	TypeMinusconstraint;

	// Converts a DoxGraphRelation enumeration to a string (suitable for the XML document)
	public static String DoxGraphRelationToString(doxygenxml.compound.DoxGraphRelation enumValue) throws com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException {
		switch(enumValue)
		{
		case Include:
	    	return "include";
		case Usage:
	    	return "usage";
		case TemplateMinusinstance:
	    	return "template-instance";
		case PublicMinusinheritance:
	    	return "public-inheritance";
		case ProtectedMinusinheritance:
	    	return "protected-inheritance";
		case PrivateMinusinheritance:
	    	return "private-inheritance";
		case TypeMinusconstraint:
	    	return "type-constraint";
		default:
	    	throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException("Unknown enumeration value for doxygenxml.compound.DoxGraphRelation [" + enumValue.toString() + "]");
		}
	}
	
	// 	Converts a string to a DoxGraphRelation enumeration
	public static DoxGraphRelation DoxGraphRelationFromString(String enumValue) throws com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException {
		String enumCollapsedValue = com.liquid_technologies.ltxmllib18.WhitespaceUtils.collapse(enumValue);
		if (enumCollapsedValue.equals("include"))
			return Include;
		else if (enumCollapsedValue.equals("usage"))
			return Usage;
		else if (enumCollapsedValue.equals("template-instance"))
			return TemplateMinusinstance;
		else if (enumCollapsedValue.equals("public-inheritance"))
			return PublicMinusinheritance;
		else if (enumCollapsedValue.equals("protected-inheritance"))
			return ProtectedMinusinheritance;
		else if (enumCollapsedValue.equals("private-inheritance"))
			return PrivateMinusinheritance;
		else if (enumCollapsedValue.equals("type-constraint"))
			return TypeMinusconstraint;
		else
			// ##HAND_CODED_BLOCK_START ID="Default Enum doxygenxml.compound.DoxGraphRelation"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
			throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException("Unknown enumeration value for doxygenxml.compound.DoxGraphRelation [" + enumValue + "]");
			// ##HAND_CODED_BLOCK_END ID="Default Enum doxygenxml.compound.DoxGraphRelation"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
	}
}

